package com.sunreal.paygateway.sys.controller;

import java.util.Enumeration;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sunreal.paygateway.sys.service.SysUserService;


/**
 * 功能描述：//TODO
 *
 * @Author 彭广
 * @Date 2019/1/18
 */
@RestController
@RequestMapping("/usermanager")
public class UserController {

    @Autowired
    private SysUserService sysUserService;

    @RequestMapping(value = "/createuser.html")
    public String login(HttpSession session) {
        try {
            Enumeration<String> attributeNames = session.getAttributeNames();
            while (attributeNames.hasMoreElements()) {
                System.out.println(attributeNames.nextElement());
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "main.html";
    }
}
